# -*- conding:utf-8 -*-
'''
Created on 2012-9-19

@author: nibo
'''
import web
import blog
web.config.debug = True
urls = (
        '/blog', blog.app_blog,
        '/(.*)', 'Index'
        )
render = web.template.render('../templates/')
class Index:
    def GET(self, path):
        return 'hello' + path 
class Redirect:
    def GET(self, path):
        print(path)
        web.seeother('/' + path)
        
if __name__ == '__main__':
    app = web.application(urls, globals())
    app.run()
#    application = app.wsgifunc()
    
    